package com.tf.xx.controller;


import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @Value("${email}")
    private String email;
    @Value("${my1.email}")
    private String my1Email;
    @Value("${city1[0]}")
    private String city1;
    @Value("${sxt[0].mobile}")
    private String mobile;
    @RequestMapping("/hello")
    public String hello(){
        return "hello,this is hot build";
    }

    @RequestMapping("/getvalue")
    public String getValue(){

        return email+";"+my1Email+city1+";"+mobile;
    }
    @RequestMapping("/email")
    public String email(){
        return "email";
    }
}
